package ltd.hxya.novel.crawl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 批量抓取任务表
 * </p>
 *
 * @author hxya
 * @since 2022-09-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("crawl_batch_task")
@ApiModel(value="CrawlBatchTask对象", description="批量抓取任务表")
public class CrawlBatchTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "爬虫源ID")
    private Integer sourceId;

    @ApiModelProperty(value = "成功抓取数量")
    private Integer crawlCountSuccess;

    @ApiModelProperty(value = "目标抓取数量")
    private Integer crawlCountTarget;

    @ApiModelProperty(value = "任务状态，1：正在运行，0已停止")
    private Boolean taskStatus;

    @ApiModelProperty(value = "任务开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "任务结束时间")
    private LocalDateTime endTime;


}
